package com.github.prontera;

import java.util.Set;

import com.github.prontera.domain.EventPublisher;
import com.github.prontera.domain.enums.EventStatus;
import com.github.prontera.persistence.EventPublisherMapper;

/**
 * @author Alex
 */
public enum PublishNewEventStrategy implements BatchFetchEventStrategy {

	SINGLETON;

	@Override
	public Set<EventPublisher> execute(EventPublisherMapper mapper) {
		return mapper.selectLimitedEntityByEventStatus(EventStatus.NEW, 300);
	}

}
